package org.mindrive.system.collection.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author houwei
 * @since 2021-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ROLE")
@ApiModel(value = "RoleEntity对象", description = "")
public class RoleEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "ID", type = IdType.ASSIGN_ID)
	private String id;

	@TableField("WORKSPACE_ID")
	private String workspaceId;

	@TableField("CODE")
	private String code;

	@TableField("NAME")
	private String name;

	//是否需填报
	@TableField("FILL_OUT")
	private String fillOut;

	//主管人员id
	@TableField("PERSON_IN_CHANGE")
	private String personInCharge;

	@TableField("CREATOR")
	private String creator;

	@TableField("CREATED_AT")
	private Date createdAt;

	@TableField("UPDATOR")
	private String updator;

	@TableField("UPDATED_AT")
	private Date updatedAt;

	@TableField(exist = false)
	private List<String> permissions;

	@TableField(exist = false)
	private Integer userNum;

}
